<?php   	  
	  //Call
	  $arrData2[0][1] = "PIT";
	  $arrData2[1][1] = "SAM";
	  
	  
	  //Presentation
	  $arrData2[2][1] = "PIT";
	  $arrData2[3][1] = "SAM";
	  
	  $index=rand(1,2);
	  //Minggu 1 , Call
	  $arrData2[0][2] = 53;
	  $arrData2[1][2] = 10;
	  
	  //presentatsi
	  $arrData2[2][2] = 28;
	  $arrData2[3][2] = 0;
	
	//Minggu 2 , call
	 $arrData2[0][3] = 22;
	 $arrData2[1][3] = 84;
	 
	 //presntation
	 $arrData2[2][3] = 25;
	 $arrData2[3][3] = 12;
	 
	 //Minggu 3 , call
	 $arrData2[0][4] = 39;
	 $arrData2[1][4] = 10;
	 
	 //presntation
	 $arrData2[2][4] =25;
	 $arrData2[3][4] = 10;
	 
	 //Minggu 4 , call
	 $arrData2[0][5] = 43;
	 $arrData2[1][5] = 54;
	 
	 //Presntation
	 $arrData2[2][5] = 10;
	 $arrData2[3][5] = 5;
	
	 	
      $xmlData = "<graph bgColor='#FFFFFF' caption='Call & Presentation'  animation='1'  canvasBorderColor='FFFFFF' showBorder='0' xAxisName='Presentation                                                          Call A Client ' yAxisName='Total' showNames='1' decimalPrecision='0' formatNumberScale='0'>";  
      $animation="<style name='CanvasAnim' type='animation' param='_xScale' start='5' duration='2' />";
	  $strCategories = "<categories>";
	  $strDataCurr = "<dataset seriesName='Minggu I'>";
	  $strDataPrev = "<dataset seriesName='Minggu II'>";
	  $strDataNext = "<dataset seriesName='Minggu III'>";
	  $strDataBeep = "<dataset seriesName='Minggu IV'>";	
	  
	 
	  foreach ($arrData2 as $arSubData) {
        $strCategories .= "<category name='" . $arSubData[1] . "' />";
        $strDataCurr .= "<set title='test' value='" . $arSubData[2] . "' />";
        $strDataPrev .= "<set value='" . $arSubData[3] . "' />";
		$strDataNext .= "<set value='" . $arSubData[4] . "' />";
		$strDataBeep .= "<set value='" . $arSubData[5] . "' />";
		
	  }	
	  
	  $strCategories .= "</categories>";
	  $strDataCurr .= "</dataset>";
	  $strDataPrev .= "</dataset>";
	  $strDataNext .= "</dataset>";
	  $strDataBeep .= "</dataset>";	
      $xmlData .= $animation.$strCategories . $strDataCurr . $strDataPrev .$strDataNext . $strDataBeep . "</graph>"; 
      //mysql_query("INSERT INTO price_fluctuation (update_datetime, price) VALUES (now(), " . rand(1000, 5000) . ")", $dbConn);  
       
      echo $xmlData;  
    ?>  